﻿using Domain.Entitys.Base_Manage;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Domain.IRepositorys.Base_Manage
{
    public interface IRolesRepository
    {
        /// <summary>
        /// 根据用户ID查询出对应的角色
        /// </summary>
        /// <param name="userId"></param>
        /// <returns></returns>
        Task<Sys_Role> GetRolesAsync(int userId);

        /// <summary>
        /// 查询所有可用角色
        /// </summary>
        /// <returns></returns>
        Task<List<Sys_Role>> GetRolesFillAsync();

        /// <summary>
        /// 添加用户角色信息
        /// </summary>
        /// <param name="sys_UserRoles"></param>
        /// <returns></returns>
        Task<int> UserRolesAddAsync(Sys_User_Role sys_UserRoles);

        /// <summary>
        /// 根据用户ID删除用户角色信息
        /// </summary>
        /// <param name="userId"></param>
        /// <returns></returns>
        Task<int> UserRolesRemoveAsync(int userId);
    }
}
